package com.xiaomai.eduorder.client;


import com.xiaomai.commonutil.ordervo.UcenterOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

//@Component
//@FeignClient("service-ucenter")
//public interface UcenterClient {
//    @PostMapping("/educenter/member/getUserInfo/{Id}")
//    public UcenterOrderVo getUserInfo(@PathVariable("id") String id);
//}
@Component
@FeignClient("service-ucenter")
public interface UcenterClient {

    //根据用户id获取用户信息
    @PostMapping("/educenter/member/getUserInfo/{id}")
    public UcenterOrderVo getUserInfo(@PathVariable("id") String id);
}
